package edu.upenn.yas;

/** A general, runtime exception that wraps checked exceptions that
  * we do not except the client to catch (e.g., SQL exns in a ctor) */
public class DBException extends RuntimeException {

    /** The exception wrapped by this DBException */
    private Throwable ex;

    public DBException(Throwable t) { ex = t; }

    public String toString() { return "DBException: " + ex.toString(); }
}
